#include<iostream>
using namespace std;
int main()
{
	int t;
	cin >> t;
	while (t--) {
		double M, m, v1;
		cin >> M >> m >> v1;
		double ans = m * v1 / (M - m);
		printf("%.2lf\n", ans);
	}
	
	return 0;
}